﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RestSharp;

namespace MsForgeReboot.Framework.TownCrierChannelTools {
    public class EventBriteAuthenticator : IAuthenticator {

        private readonly string _apiKey;
        private readonly string _userKey;

        public EventBriteAuthenticator() { }

        public EventBriteAuthenticator(string apikey, string userkey) {
            _apiKey = apikey;
            _userKey = userkey;
        }

        #region IAuthenticator Members

        public void Authenticate(IRestClient client, IRestRequest request) {
            //throw new NotImplementedException();
            request.AddParameter("app_key", _apiKey, ParameterType.GetOrPost);
            request.AddParameter("user_key", _userKey, ParameterType.GetOrPost);
        }

        #endregion

    }
}
